<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>show treeTable ContentCategory</title>
<link rel="stylesheet" href="/static/css/jquery.treetable.css">
<link rel="stylesheet" href="/static/css/jquery.treetable.theme.default.css">
<link rel="stylesheet" href="/static/css/screen.css" media="screen" />
 
</head>
<body>
分类目录显示:
<table border="1px" width="40%" height="100%" id="categoryId">
	<thead>
		<!-- <th>ID</th> -->
		<th>name</th>
		<!-- <th>父节点的ID</th>		 -->
	</thead>
	
	
	<tbody >
		<c:forEach items="${contentCategoryList}" var="contentCategory">
		 
			<tr align="left" data-tt-id="${contentCategory.id }" data-tt-parent-id="${contentCategory.parentId }">
				<%-- <td>${contentCategory.id }</td> --%>
				<td>${contentCategory.name }</td>
				<%-- <td>${contentCategory.parentId }</td> --%>
			</tr>
		 
		</c:forEach>
	</tbody>


</table>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.treetable.js"></script>
<script type="text/javascript">
	$(function(){
		
		$("#categoryId").treetable({
			expandable: true,
			 expandLevel: 2
		        
			});
		
	});
	
</script>
</body>
</html>